package com.oplink.webems.modules.alarm.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.oplink.webems.common.persistence.BaseDao;
import com.oplink.webems.common.persistence.BaseDaoImpl;
import com.oplink.webems.modules.alarm.entity.AlarmSeverity;
import com.oplink.webems.modules.alarm.entity.TrapOid;

/**
 * Alarm Severity Dao
 * @author yizhang
 */
public interface AlarmSeverDao extends AlarmSeverDaoCustom, CrudRepository<AlarmSeverity, Long> {
	
	@Query("from AlarmSeverity")
	public List<AlarmSeverity> findAllSeverity();
}

interface AlarmSeverDaoCustom extends BaseDao<AlarmSeverity> {

}

@Component
class AlarmSeverDaoImpl extends BaseDaoImpl<AlarmSeverity> implements AlarmSeverDaoCustom {

}